package com.colorlight.cloud.mqtt.base.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 配置
 *
 * @author Demon
 * mqtt配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "mqtt.config")
public class MqttProperties {
	
	
	private Integer completionTimeout = 3000;
	
	private Integer heartbeat = 60;
	
	private String envPrefix = "COLORLIGHT10";
	
	private String url;
	
	private Integer[] qos = {0};
	
	private String[] topics;
	
	private String deviceName = "CLT05647489200";
	
	private String deviceSecret = "2ae2de47448442d59046ac22a8216606";
	
	private String productKey = "ROOT";
	
	private Boolean tls = false;
	
	private String clientCertPath = "/data/ssl/client.crt";
	
	private String clientKeyPath = "/data/ssl/client.key";
	
	private String caCertPath = "/data/ssl/ca.crt";
	
	private Integer corePoolSize = 50;
	private Integer maxPoolSize = 60;
	private Integer keepAliveSeconds = 30;
	private Integer queueCapacity = 1000;
}
